<template>
  <el-tabs v-model="active" type="border-card">
    <el-tab-pane label="基本信息">
      <fillBaseView :id="linkPk" :form-id.sync="formId" />
      <fillEmpView :id="linkPk" style="margin-top: 10px;" />
    </el-tab-pane>
    <el-tab-pane label="填报的表单">
      <userForm :formId="formId" :isShowBtn="false" :isLoad="active==1" @load="load"></userForm>
    </el-tab-pane>
  </el-tabs>
</template>

<script>
import fillBaseView from './components/fillBaseView.vue'
import fillEmpView from './components/fillEmpView.vue'
import userForm from  '@/customForm/components/userForm/userForm.vue'
export default {
  components: {
    fillBaseView,
    fillEmpView,
    userForm
  },
  props: {
    linkPk: {
      type: String,
      default: null
    }
  },
  data() {
    return {
      active: 0,
      formId: null
    }
  },
  computed: {
  },
  mounted() {},
  methods: {
  }
}
</script>
